<?
global $module,$value;

$s = inc_incfile(basename(dirname(__FILE__))."/setup.php",$params);
$params["id"] = $value;

if (strcmp($value,intval($value))==0) {
	$params["id"] = intval($value);
	
	global $db,$user;
	$e = $db->query1("select * from project where id = ".$db->sqlint($value));
	#if ($e["users_id"] != $user["id"]) fusedie("You don't own that project.");
	
	$e["mods"] = 0700; #HACK: set auto mods for item
	permission_require($e,7);
	
	return array($s["module"],$params);
	}
	
if (strcmp($value,"_")==0) {
	$params["id"] = 0;
	return array($s["module"],$params);
	}

return array($s["module"],$params);
?>
